<link rel="stylesheet" type="text/css" href="modules/IShopStore/pnjavascript/ddtabmenu/ddtabmenufiles/ddcolortabs_blue.css" />

<h2 align="center">รูปแบบการขนส่งสินค้า</h2>

<div id="ddtabs" class="ddcolortabs">
  <ul>
    <li><a href="<!--[pnmodurl modname='IShopStore' type='admin' func='page' ctrl='home']-->" rel="ct1"><span>หน้าหลัก</span></a></li>
  </ul>
</div>

  <div align="right"><a href="<!--[pnmodurl modname='IShopStore' type='admin' func='form' ctrl='Shipment']-->"><img align="absmiddle" src="modules/IShopStore/pnimages/add.png" />เพิ่มการจัดส่ง</a></div>


<fieldset>
 <!--[yppager show=page 
                   img_prev="modules/IShopStore/pnimages/back.png"
                   img_next="modules/IShopStore/pnimages/next.png"
                   rowcount=$pager.numitems 
                   limit=$pager.itemsperpage 
                   posvar=startnum 
                   shift=0 
 ]-->
<!--[if $objectArray]-->
<table width="100%" border="0" align="center">
  <tr align="center">
    <th width="5%" bgcolor="#C7D9EB">
      <a href="<!--[pnmodurl modname='IShopStore' type='admin' func='list' ctrl='Shipment' order='id']-->" 
	       title="เรียงลับดับโดย ID" alt="เรียงลับดับโดย ID">ID</a></th>
    <th width="15%" bgcolor="#C7D9EB">การขนส่ง</th>
    <th width="10%" bgcolor="#C7D9EB">ราคา บาท</th>
    <th width="35%" bgcolor="#C7D9EB">รายละเอียด</th>
    <th width="10%" bgcolor="#C7D9EB">จัดการ</th>
  </tr>

  
  <!--[foreach from=$objectArray item=item]-->
  <!--[get_category_by_id cat_id=$item.categories_id]-->
  <tr bgcolor="<!--[cycle values="#FFFFFF,#E8EFF7"]-->">
    <td align="center"><!--[$item.id]--></td>
    <td align="center"><!--[$item.shipment]--></td>
    <td align="center"><!--[$item.price]--></td>
    <td>
      <!--[$item.detail|mb_truncate:80:"..."]-->
    </td>
    <td align="center">
      <a target="_blank" href="<!--[pnmodurl modname='IShopStore' type='admin' func='form' ctrl='Shipment' id=$item.id]-->" title="แก้ไข"><img src="modules/IShopStore/pnimages/edit.png" /></a>&nbsp;&nbsp;

      <a href="<!--[pnmodurl modname='IShopStore' type='admin' func='delete' ctrl='Shipment' id=$item.id]-->" title="ลบ" onclick="return confirm('Are you sure you want to delete?')"><img src="modules/IShopStore/pnimages/delete.png" /></a>
    </td>
  </tr>

  <!--[/foreach]-->

</table>
  <!--[else]-->
  <h2 align="center">ยังไม่มีรายการขนส่งสินค้า</h2>
  <!--[/if]-->
 <!--[yppager show=page 
                   img_prev="modules/IShopStore/pnimages/back.png"
                   img_next="modules/IShopStore/pnimages/next.png"
                   rowcount=$pager.numitems 
                   limit=$pager.itemsperpage 
                   posvar=startnum 
                   shift=0 
 ]-->
</fieldset>